package com.example.springbootdemo2.controller;

import jakarta.annotation.PostConstruct;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Data
@ConfigurationProperties("student")
public class TestController {
    private int id;
    private int age;
    private String name;
/*    @Value("${java}")
    public int num;*/
/*    @PostConstruct
    public void test() {
        System.out.println(num);
    }*/
}
